package com.offline.module.user.entity.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.offdissys.common.db.entity.BaseEntity;
import lombok.Data;

import javax.persistence.Column;
import java.io.Serializable;

/**
 * @author ZhangHaiWen
 * @title: UserInfo
 * @projectName offline-discount-sys
 * @description: 用户表
 * @date 2022/3/2120:18
 */
@Data
@TableName(value = "user_info")
public class UserInfo extends BaseEntity implements Serializable {

    /**
     * 商品id
     */
    @Column(name = "id")
    @TableId(value = "id" ,type = IdType.AUTO)
    private Integer id;

    /**
     * 用户名
     */
    @Column(name = "user_name")
    @TableField(value = "user_name")
    private String userName;

    /**
     * 年龄
     */
    @Column(name = "age")
    @TableField(value = "age")
    private Integer age;

}
